import { ApiProperty } from '@nestjs/swagger';
import { Column, Entity } from 'typeorm';
import { BaseEntity } from '../../../base.entity';

@Entity({ name: 'sys_dictionary_type' })
export default class SysDictionaryType extends BaseEntity {
  @Column({
    type: 'varchar',
    length: 50,
    unique: true,
    name: 'dictionary_type_code',
    comment: '字典编码',
  })
  @ApiProperty()
  dictionaryTypeCode: string;

  @Column({ type: 'varchar', length: 50, name: 'dictionary_type_name', comment: '字典名称' })
  @ApiProperty()
  dictionaryTypeName: string;

  @Column({ type: 'varchar', nullable: true, comment: '备注' })
  @ApiProperty()
  remark: string;
}
